package com.df.userserver.api.user.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author : lichong
 * @description :
 * @Date Create in 20:53 2020/5/11
 * @Modified By :
 **/
@RestController
@RequestMapping("/api/user")
public class UserController {
    private static final Logger logger = LoggerFactory.getLogger(UserController.class);
    @Value("${server.port}")
    private Integer port;

    @GetMapping("info")
    public String getUserInfo() {
        logger.info("================服务被调用端口：{}", port);
        return "我是提供者端口:" + port;
    }
}
